package com.symaster.pdfcompose.frame.component.pdfrow;

import javax.swing.*;
import java.awt.*;
import java.io.File;

/**
 * @author yinmiao
 * @version 2024/4/29
 */
public class PdfRow extends JComponent {

    private final File pdfFile;

    public PdfRow(File pdfFile) {
        this.pdfFile = pdfFile;
        setLayout(new BorderLayout());

        JLabel jLabel = new JLabel(pdfFile.getName());
        add(jLabel);
    }

    public File getPdfFile() {
        return pdfFile;
    }
}
